package com.luhai.shipmentscheck.util;

import android.content.Context;
import android.os.Vibrator;

/**
 * Created by jzh-创世头盔之父.
 * Date: 2019\9\26 0026* Time: 17:17
 * Emaile: 1186832904@qq.com
 * Introduction: jzh de code
 */
public class ShakeUtil {


    /**
     * 手机震动
     * @param context
     */
    public static void shake(Context context){
        Vibrator vibrator = (Vibrator)context.getSystemService(context.VIBRATOR_SERVICE);
        vibrator.vibrate(500);
    }
}
